<?php
try
{
    require_once 'amfphp/globals.php';

    // include bootstrap.
    Configuration::includeBootstrap() ;

    // customize the session name.
    session_name( 'kp_backend' );

    $config = new BackendConfiguration( $_SERVER['REDIRECT_URL'], 'backend', true);
    $config->init();
}
catch( Exception $e )
{
    die('<pre>' . $e->getMessage() . '</pre>');
}